package com.zygh.lz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zygh.lz.entity.Gislocation;
import com.zygh.lz.entity.Section;
import com.zygh.lz.entity.Staff;
import com.zygh.lz.stapprove.ResultUtil;
import com.zygh.lz.vo.ResultBean;
import com.zygh.lz.vo.ResultBeans;
import com.zygh.lz.vo.SectionListVO;

import java.util.List;
import java.util.Map;

public interface SectionService extends IService<Section> {
    //新增部门
    ResultBean addSection(Section section);

    //修改部门
    ResultBean modefiSectionById(Section section);

    //根据id删除部门
    ResultBean delSectionById(Integer id);


    //按层级推送
    ResultBean selectAllSection(String sectionname);


    ResultBean selectSectionByPid();

    //查询所有
    ResultBean selectAllSectionInfo(String sectionname);

    //部门人员信息查询那里的模糊查询
    ResultBean selectSectionByCt(String sex, String staffHierarchy, String sectionName);

    //根据部门id查询所有部门人员
    ResultBean selectBySectionId(Integer sectionId, String staffHierarchy);

    //根据大队id查询大队下面的中队
    ResultBean selectDetachmentByid(Integer id);

    //勤务部门层级列表
    ResultBean findSectionByTier(String sectionname);

    //日常勤务列表返回
    ResultBeans findSectionById(Integer sectionId, String policeNumber);

    ResultBean findSectionByid(Integer id);

    //消息管理模块部门层级列表
    ResultBean findSectionTier(Integer id);
    ResultBean findSectionTiers(Integer id);

    ResultBean getSectionTree(Integer id);

    ResultBean updateSectionByIds(Section section);


    List<Integer> findSectionNum(Integer id);

    //首页警力分类列表
    List<Map<String,Object>> findSectionsByPid(Integer pid);


    ResultBean getSectionRoleTree(Integer id);

    ResultBean man(Integer sysSectionId, Integer id,Integer page,Integer num);

    ResultBean updateMan(Staff staff);

    ResultBean delete(List<Integer> staff );

    ResultBean getSectionAll(Integer id);

    ResultBean findByCondition(Integer postCode, int[] sectionIds, String gridding);

    ResultBean getByPostId(Integer id);
}
